unsigned __stdcall HardCoreUnitTest (void* CompletlyUseLess) 
{
	string ip = "127.0.0.1";
	SocketClient *mysock;
	//using namespace Protocol;

	try {
		mysock = new SocketClient(ip, SERVERPORT); // this will have to be changed to command line args
	}
	catch (...) {
		cout << "Couldn't connect to " << ip << endl;
		exit(1);
	}

	cout << "====Unit test is Connected..=== \n" << endl;
	Sleep(100);		Protocol::fc2db_entered(*mysock,1001);
	Sleep(100);		Protocol::fc2db_entered(*mysock,2001);
	Sleep(100);		Protocol::tc2db_enetered(*mysock,21);
	Sleep(100);		Protocol::tc2db_enetered(*mysock,11);
	Sleep(100);		Protocol::tc2db_parked(*mysock,11,15,15);
	Sleep(100);		Protocol::tc2db_parked(*mysock,21,25,15);
	Sleep(100);		Protocol::tc2db_unparked(*mysock,16,14);
	Sleep(100);		Protocol::tc2db_parked(*mysock,11,15,15);
	Sleep(100);		Protocol::tc2db_unparked(*mysock,16,14);
	Sleep(100);		Protocol::tc2db_exited(*mysock,11);
	Sleep(100);
	string s;
	if(ParkinglotDB::instance().WhereIsMyCar(2001,s)==-2)
		cout << "\n===\nTest Passed\n===\n";
	else
		cout << "\n===\nTest Failed\n===\n";
	Sleep(100);		mysock->SendLine("UserInterface connected");
	//string rcv(mysock->ReceiveLine());
	//cout << "Recieved: " << rcv << endl;

	delete mysock;
	return 0;
}